package models

import "time"

type DoTaskDao struct {
	Id        int       `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
	WorkerId  int       `gorm:"column:worker_id;type:int(11);NOT NULL" json:"worker_id"`
	TaskId    int       `gorm:"column:task_id;type:int(11);NOT NULL" json:"task_id"`
	TaskRes   int       `gorm:"column:task_res;type:int(11);NOT NULL" json:"task_res"`
	TaskEvi   string    `gorm:"column:task_evi;type:text" json:"task_evi"`
	CreatedAt time.Time `gorm:"column:created_at;type:timestamp" json:"created_at"`
	UpdatedAt time.Time `gorm:"column:updated_at;type:timestamp" json:"updated_at"`
}

func (s *DoTaskDao) TableName() string {
	return "do_task"
}
